package com.aaa.controller;


import com.aaa.commen.entity.Result;
import com.aaa.service.IAssetCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-02-23
 */
@RestController
@RequestMapping("/assetCompany")
public class AssetCompanyController {

    @Autowired
    private IAssetCompanyService assetCompanyService;

    /**
     * 查询公司信息(用作下拉框)
     * @return
     */
    @GetMapping("listCompanyInfo")
    public Result listCompanyInfo(){
        return assetCompanyService.queryCompanyInfo();
    }
}

